using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._SpatialAnalystTools._Hydrology
{
    /// <summary>
    /// <para>Sink</para>
    /// <para>Creates a raster identifying all sinks or areas of internal drainage.</para>
    /// <para>创建标识所有汇或内部排水区域的栅格。</para>
    /// </summary>    
    [DisplayName("Sink")]
    public class Sink : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public Sink()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_flow_direction_raster">
        /// <para>Input D8 flow direction raster</para>
        /// <para><xdoc>
        ///   <para>The input raster that shows the direction of flow out of each cell.</para>
        ///   <para>The flow direction raster can be created using the Flow Direction tool, run using the default flow direction type D8.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>显示流出每个像元的方向的输入栅格。</para>
        ///   <para>可以使用流向工具创建流向栅格，该工具使用默认流向类型 D8 运行。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_raster">
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster that shows all the sinks (areas of internal drainage) on the input surface.</para>
        ///   <para>This output is of integer type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>显示输入表面上所有汇（内部排水区域）的输出栅格。</para>
        ///   <para>此输出为整数类型。</para>
        /// </xdoc></para>
        /// </param>
        public Sink(object _in_flow_direction_raster, object _out_raster)
        {
            this._in_flow_direction_raster = _in_flow_direction_raster;
            this._out_raster = _out_raster;
        }
        public override string ToolboxName => "Spatial Analyst Tools";

        public override string ToolName => "Sink";

        public override string CallName => "sa.Sink";

        public override List<string> AcceptEnvironments => ["autoCommit", "cellSize", "cellSizeProjectionMethod", "compression", "configKeyword", "extent", "geographicTransformations", "mask", "outputCoordinateSystem", "parallelProcessingFactor", "scratchWorkspace", "snapRaster", "tileSize", "workspace"];

        public override object[] ParameterInfo => [_in_flow_direction_raster, _out_raster];

        /// <summary>
        /// <para>Input D8 flow direction raster</para>
        /// <para><xdoc>
        ///   <para>The input raster that shows the direction of flow out of each cell.</para>
        ///   <para>The flow direction raster can be created using the Flow Direction tool, run using the default flow direction type D8.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>显示流出每个像元的方向的输入栅格。</para>
        ///   <para>可以使用流向工具创建流向栅格，该工具使用默认流向类型 D8 运行。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input D8 flow direction raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_flow_direction_raster { get; set; }


        /// <summary>
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster that shows all the sinks (areas of internal drainage) on the input surface.</para>
        ///   <para>This output is of integer type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>显示输入表面上所有汇（内部排水区域）的输出栅格。</para>
        ///   <para>此输出为整数类型。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_raster { get; set; }


        public Sink SetEnv(int? autoCommit = null, object cellSize = null, object compression = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object mask = null, object outputCoordinateSystem = null, object parallelProcessingFactor = null, object scratchWorkspace = null, object snapRaster = null, double[] tileSize = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, cellSize: cellSize, compression: compression, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, mask: mask, outputCoordinateSystem: outputCoordinateSystem, parallelProcessingFactor: parallelProcessingFactor, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, tileSize: tileSize, workspace: workspace);
            return this;
        }

    }

}